<?php
$a=$oMysql->get("SELECT title,id,pubdate FROM wenzhang ORDER BY pubdate DESC LIMIT 0,10");
for ($i=0;$i<count($a);$i++)
{
    $a[$i]['pubdate']=date("Y-m-d",$a[$i]['pubdate']);
}
echo json_encode($a);